<template>
  <div>
    <div class="main-tab">
      <x-header id="header" :left-options="{backText: ''}" class="top"><span class="tit">关注</span></x-header>
      <div class="main">
        <group>
          <cell-box v-for=" (item, index) in fans" :key="item.id">
            <img src="../../../static/img/my-off.png" class="avatar">
            <span class="name">{{item.nickName}}</span>
            <Foc class="follow" :fengsi="fans"></Foc>
          </cell-box>
        </group>
      </div>
      <div class="more">没有更多了哦～</div>
    </div>
  </div>
</template>

<script>
  import Foc from '../../components/follow/focus'
  import {getUserFans,editUserRelation} from '@/api/user';
  import { cookie } from 'vux'
    export default {
        name: "focus",
      components:{
        Foc
      },
      data(){
        return{
          fans:[
            {
              id:1,
              nickName:'王小二',
              image:'',
            },
            {
              id:2,
              nickName:'王小二',
              image:'',
            },
            {
              id:3,
              nickName:'王小二',
              image:'',
            }
          ]
        }
      }
    }
</script>

<style scoped>
  .top{
    background: #AD2532;
    box-shadow: 0 0 0 0 rgba(0,0,0,0.25);
  }
  .tit{
    margin-top: 8px;
    font-family: "PingFangSC-Semibold",serif;
    font-size: 17px;
    color: #FFFFFF;
    letter-spacing: -0.41px;
    text-align: center;
  }
  .main{
    padding-top:28px;
  }
  .follow{
    position: absolute;
    right: 4%;
  }
  .avatar{
    width: 3.57rem;
    height: 3.57rem;
    border: 1px solid #F4F4F4;
    border-radius:50%; overflow:hidden;
  }
  .name{
    font-family: "PingFangSC-Semibold",serif;
    font-size: 17px;
    color: #030303;
    letter-spacing: -0.41px;
    text-align: center;
    margin-left: 1.08rem;
  }
  .more{
    position: absolute;
    left: 50%;
    margin-left: -3.43rem;
    margin-top: 1.07rem;
    font-size: 14px;
    color: #9B9B9B;
    letter-spacing: -0.34px;
    text-align: justify;
  }
</style>
